import java.awt.*;
import java.util.Random;
import javax.swing.*;
class Cat{
    int age;
    String name;
    String color;

    @Override
    public String toString() {
        return "Cat{" +
                "age=" + age +
                ", name='" + name + '\'' +
                ", color='" + color + '\'' +
                '}';
    }

    public void setAge(int age) {
        this.age = age;
    }

    public void setName(String name) {
        this.name = name;
    }

    public void setColor(String color) {
        this.color = color;
    }
}
public class Main {
    static final int ARS=10;

    public static void main(String[] args) {

        int a[][]=new int[ARS][ARS];

        Random r = new Random();
        for (int i = 0; i < a.length; i++) {

            for (int j = 0; j < a[1].length; j++) {
                a[i][j]=r.nextInt(41)+60;
            }


        }
        for (int i = 0; i < a.length; i++) {
            for (int j = 0; j < a[i].length; j++) {

                System.out.print(a[i][j]+"\t");
            }
            System.out.println("");

        }
        for (int i = 0; i < a.length; i++) {
            for(int j=0;j <a[i].length;j++){
                if(i==0||j==0||i==a.length-1||j==a[i].length-1){
                    a[i][j]=0;
                }
            }
        }
        /*for (int i = 0; i < a.length; i++) {
            for (int j = 0; j <= i; j++) {
                a[i][j]=0;
            }三角形
        }*/
        for (int i = 0; i < a.length; i++) {

            for (int j = 0; j <a[i].length; j++) {


                System.out.print(a[i][j]+"\t");

            }


            System.out.println("");


        }


        /*Cat one = new Cat();
        one.setAge(6);
        one.setName("花猫");
        one.setColor("蓝色");
        System.out.println(one);*/
        /*int[] arr = new int[10];
        Random r = new Random();
        int sum = 0;
        for (int i =0;i<arr.length;i++){
            int num = r.nextInt(100);
            arr[i] =num;
        }
        for (int i = 0;i<arr.length;i++){
            System.out.println(arr[i]);
        }
        for (int i=0;i<arr.length;i++){
            sum+=arr[i];
        }
        System.out.println("最大值:"+sum);*/
        /*int s= 0;
        for (int i=0;i<=100;i++){
            s = s+i;
        }
        System.out.println(s);*/
    }
        /*JFrame frm = new  JFrame("BorderLayout东西南北中");
        Container con = frm.getContentPane();
        con.setLayout(new BorderLayout());
        con.add(BorderLayout.NORTH,new JButton("北"));
        con.add(BorderLayout.SOUTH,new JButton("南"));
        con.add(BorderLayout.EAST,new JButton("东"));
        con.add(BorderLayout.WEST,new JButton("西"));
        con.add(BorderLayout.CENTER,new JButton("中"));
        frm.setSize(300,150);
        frm.setVisible(true);
    }*/
}
